package com.xiyue.leaspring.service.impl;

import org.springframework.stereotype.Service;

import com.xiyue.leaspring.service.IMessageService;

@Service
public class MessageServiceImpl implements IMessageService {

	@Override
	public String echo(String msg) {
		if(msg==null) {
			throw new RuntimeException("空消息，无法处理！");
		}
		System.out.println("【MessageServiceImpl业务实现类】收到消息内容："+msg);
		return "【ECHO】msg="+msg;
	}

}
